package com.bw.service;

import com.bw.bean.Student2Bean;
import com.bw.bean.Type2Bean;
import com.bw.mapper.InMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class Servicelmpl implements InService{

    @Resource
    private InMapper inMapper;

    @Override
    public List<Student2Bean> list(Map map) {
        return inMapper.list(map);
    }

    @Override
    public int add(Student2Bean student2Bean) {
        return inMapper.add(student2Bean);
    }

    @Override
    public int del(Integer[] sid) {
        return inMapper.del(sid);
    }

    @Override
    public List<Type2Bean> huixian() {
        return inMapper.huixian();
    }

    @Override
    public Student2Bean idlist(Integer sid) {
        return inMapper.idlist(sid);
    }

    @Override
    public int update(Student2Bean student2Bean) {
        return inMapper.update(student2Bean);
    }
}
